package com.softaria.spkiller.classfinder;

import java.io.IOException;
import java.io.InputStream;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;


class ZipInputStreamGetter implements InputStreamGetter {

	private ZipFile zipFile;
	private ZipEntry entry;

	public ZipInputStreamGetter(ZipFile zipFile, ZipEntry entry) {
		this.zipFile = zipFile;
		this.entry = entry;
	}

	@Override
	public InputStream getInputStream() throws IOException {
		return zipFile.getInputStream(entry);
	}

}
